<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('修改问卷记录')"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-record-edit" th:object="${qaRecord}">
        <input name="recordId" th:field="*{recordId}" type="hidden">
        <div class="form-group">
            <label class="col-sm-3 control-label">
                ：</label>
            <div class="col-sm-8">
                <input name="themeId" th:field="*{themeId}" class="form-control"
                       type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">
                ：</label>
            <div class="col-sm-8">
                <input name="name" th:field="*{name}" class="form-control"
                       type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">
                ：</label>
            <div class="col-sm-8">
                <input name="age" th:field="*{age}" class="form-control"
                       type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">
                ：</label>
            <div class="col-sm-8">
                <select name="sex" class="form-control m-b">
                    <option value="">所有</option>
                </select>
                <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">
                ：</label>
            <div class="col-sm-8">
                <textarea name="opinion" class="form-control">[[*{opinion}]]</textarea>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">
                ：</label>
            <div class="col-sm-8">
                <input name="ip" th:field="*{ip}" class="form-control"
                       type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">
                ：</label>
            <div class="col-sm-8">
                <input name="remark" th:field="*{remark}" class="form-control"
                       type="text">
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer"/>
<script th:inline="javascript">
    var prefix = ctx + "qa/record";
    $("#form-record-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/edit", $('#form-record-edit').serialize());
        }
    }
</script>
</body>
</html>